package com.lottery.material.service.portal.article.impl;

import com.lottery.material.dao.article.ArticleTextInfoMapper;
import com.lottery.material.pojo.article.ArticleTextInfo;
import com.lottery.material.service.portal.article.ArticleTextInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:    文章文字内容信息服务实现类
 * Author:         sunny
 * CreateDate:     2019-04-24 18:08
 */
@Service
public class ArticleTextInfoServiceImpl implements ArticleTextInfoService {

    @Autowired
    private ArticleTextInfoMapper articleTextInfoMapper;

    /**
     * description: 根据文章id查询文章内容
     * author sunny
     * createDate 2019-04-24 下午 6:13
     * @param articleId
     * @return
     */
    @Override
    public List<ArticleTextInfo> findByArticleId(String articleId) {
        return articleTextInfoMapper.findByArticleId(articleId);
    }
}
